//获取当前位置
getCurLoc(id) { // 当前位置
    getParentCategory({
        id: id  //传递指定分类的id
    }).then((response) => {
        console.log('list/list.vue 获取当前位置：');
        console.log(response.data);
        var dt = response.data;
        var curLoc;
        //组合类别
        var index_p = {'id': 0, 'name': '首页'};
        var first = {'id': dt.id, 'name': dt.name};
        curLoc = [index_p, first];
        if (dt.parent_category != null) {
            var second = {'id': dt.parent_category.id, 'name': dt.parent_category.name};
            curLoc = [index_p, second, first];
            if (dt.parent_category.parent_category != null) {
                var third = {'id': dt.parent_category.parent_category.id, 'name': dt.parent_category.parent_category.name};
                curLoc = [index_p, third, second, first];
            }
        }
        this.curLoc = curLoc
    }).catch(function (error) {
        console.log(error);
    });
},